package org.ring.jb.file;
import java.io.File;
import java.util.Date;



public class Main {
	public static void main(String... args){
		FileGenerator generator = new FileGenerator();
		long current = (new Date()).getTime();
		
		generator.generate(new File("C:\\Develop\\100M.txt"), 100*1024*1024l);
		System.out.println("Generate 100M file cost: "+((new Date()).getTime() - current)+" ms");
		
		generator.generate(new File("C:\\Develop\\200M.txt"), 200*1024*1024l);
		System.out.println("Generate 200M file cost: "+((new Date()).getTime() - current)+" ms");
		
		generator.generate(new File("C:\\Develop\\400M.txt"), 400*1024*1024l);
		System.out.println("Generate 400M file cost: "+((new Date()).getTime() - current)+" ms");
		
		generator.generate(new File("C:\\Develop\\800M.txt"), 800*1024*1024l);
		System.out.println("Generate 800M file cost: "+((new Date()).getTime() - current)+" ms");
		
		
		generator.generate(new File("C:\\Develop\\1G.txt"), 1024*1024*1024l);
		System.out.println("Generate 1G file cost: "+((new Date()).getTime() - current)+" ms");
		
//		generator.generate(new File("C:\\Develop\\4G.txt"), 4*1024*1024*1024l);
//		System.out.println("Generate 4G file cost: "+((new Date()).getTime() - current)+" ms");
//		
//		generator.generate(new File("C:\\Develop\\16G.txt"), 16*1024*1024*1024l);
//		System.out.println("Generate 16G file cost: "+((new Date()).getTime() - current)+" ms");
	}
}
